@extends('auth.master')
@section('content')
{{Form::open(array('url'=>'auth/dang-ky','name'=>'dangky-form','class'=>'dangky-form','method'=>'post'))}}
    <div class="row form-group">
        <div class="col-md-12">
        	<div class="col-md-3" style="font-family:Tahoma; font-size:12px; font-weight:600;">
        		<label for="" class="control-label">
	                Tên đăng nhập <span style="color:red;">&nbsp*</span>
	            </label>
        	</div>
            <div class="col-md-7">
                {{Form::text("txtusername",Input::old("txtusername"),array("placeholder"=>"Tên đăng nhập","class"=>"form-control"))}}
                @if(($errors->first('txtusername') != null))
                    <label for="" class="control-label" style="font-family:Tahoma; font-size:12px; font-weight:600;color:red;">
                         {{$errors->first('txtusername')}}
                    </label>
                @endif  
            </div> 
        </div><!-- End .col-md-12 -->
        <div class="col-md-12" style="margin-top:7px;">
        	<div class="col-md-3" style="font-family:Tahoma; font-size:12px; font-weight:600;">
        		<label for="" class="control-label">
	                Mật khẩu <span style="color:red;">&nbsp*</span>
	            </label>
        	</div>
            <div class="col-md-7">
                {{Form::password("txtpassword",array("placeholder"=>"Mật khẩu","class"=>"form-control"))}}
                @if(($errors->first('txtpassword') != null))
                    <label for="" class="control-label" style="font-family:Tahoma; font-size:12px; font-weight:600;color:red;">
                         {{$errors->first('txtpassword')}}
                    </label>
                @endif 
            </div>   
        </div><!-- End .col-md-12 -->
        <div class="col-md-12" style="margin-top:7px;">
        	<div class="col-md-3" style="font-family:Tahoma; font-size:12px; font-weight:600;">
        		<label for="" class="control-label">
	                Họ tên <span style="color:red;">&nbsp*</span>
	            </label>
        	</div>
            <div class="col-md-8">
                {{Form::text("txthoten",Input::old("txthoten"),array("placeholder"=>"Họ Tên","class"=>"form-control"))}}
                @if(($errors->first('txthoten') != null))
                    <label for="" class="control-label" style="font-family:Tahoma; font-size:12px; font-weight:600;color:red;">
                         {{$errors->first('txthoten')}}
                    </label>
                @endif 
            </div>   
        </div><!-- End .col-md-12 -->
        <div class="col-md-12" style="margin-top:7px;">
        	<div class="col-md-3" style="font-family:Tahoma; font-size:12px; font-weight:600;">
        		<label for="" class="control-label">
	                Ngày sinh <span style="color:red;">&nbsp* (YYYY-mm-dd)</span>
	            </label>
        	</div>
            <div class="col-md-5">
                {{Form::text("txtngaysinh",Input::old("txthoten"),array("id"=>"NgaySinh","placeholder"=>"Ngày sinh","class"=>"form-control"))}}
                @if(($errors->first('txtngaysinh') != null))
                    <label for="" class="control-label" style="font-family:Tahoma; font-size:12px; font-weight:600;color:red;">
                         {{$errors->first('txtngaysinh')}}
                    </label>
                @endif 
            </div>   
        </div><!-- End .col-md-12 -->
        <div class="col-md-12" style="margin-top:7px;">
        	<div class="col-md-3" style="font-family:Tahoma; font-size:12px; font-weight:600;">
        		<label for="" class="control-label">
	                Giới tính <span style="color:red;">&nbsp*</span>
	            </label>
        	</div>
            <div class="col-md-8">
            	<label for="" class="control-label" style="font-family:Tahoma; font-size:12px; font-weight:600;">
                    {{Form::radio('GioiTinh',1,(Input::old('GioiTinh') == 1) ? true : false)}} Nam
                    {{Form::radio('GioiTinh',0,(Input::old('GioiTinh') == 0) ? true : false,array('style'=>'margin-left:15px;'))}} Nữ
                    {{Form::radio('GioiTinh',2,(Input::old('GioiTinh') == 2) ? true : false,array('style'=>'margin-left:15px;'))}} Khác
            	</label>
                @if(($errors->first('GioiTinh') != null))
                    <label for="" class="control-label" style="font-family:Tahoma; font-size:12px; font-weight:600;color:red;">
                         {{$errors->first('GioiTinh')}}
                    </label>
                @endif
            </div>   
        </div><!-- End .col-md-12 -->
        <div class="col-md-12" style="margin-top:7px;">
        	<div class="col-md-3" style="font-family:Tahoma; font-size:12px; font-weight:600;">
        		<label for="" class="control-label">
	                Email <span style="color:red;">&nbsp*</span>
	            </label>
        	</div>
            <div class="col-md-8">
                {{Form::text("txtemail",Input::old("txtemail"),array("placeholder"=>"Email","class"=>"form-control"))}}
                @if(($errors->first('txtemail') != null))
                    <label for="" class="control-label" style="font-family:Tahoma; font-size:12px; font-weight:600;color:red;">
                         {{$errors->first('txtemail')}}
                    </label>
                @endif
            </div>   
        </div><!-- End .col-md-12 -->
        <div class="col-md-12" style="margin-top:7px;">
        	<div class="col-md-3" style="font-family:Tahoma; font-size:12px; font-weight:600;">
        		<label for="" class="control-label">
	                Số điện thoại <span style="color:red;">&nbsp*</span>
	            </label>
        	</div>
            <div class="col-md-5">
                {{Form::text("txtsodienthoai",Input::old("txtsodienthoai"),array("placeholder"=>"Số điện thoại","class"=>"form-control","tabindex"=>"6"))}}
                @if(($errors->first('txtsodienthoai') != null))
                    <label for="" class="control-label" style="font-family:Tahoma; font-size:12px; font-weight:600;color:red;">
                         {{$errors->first('txtsodienthoai')}}
                    </label>
                @endif
            </div>   
        </div><!-- End .col-md-12 -->
        <div class="col-md-12" style="margin-top:7px;">
        	<div class="col-md-3" style="font-family:Tahoma; font-size:12px; font-weight:600;">
        		<label for="" class="control-label">
	                Mã xác nhận <span style="color:red;">&nbsp*</span>
	            </label>
        	</div>
            <div class="col-md-5">
                {{Form::text("txtcapchar",null,array("placeholder"=>"Mã xác nhận","class"=>"form-control"))}}
                @if(($errors->first('txtcapchar') != null))
                    <label for="" class="control-label" style="font-family:Tahoma; font-size:12px; font-weight:600;color:red;">
                         {{$errors->first('txtcapchar')}}
                    </label>
                @endif
            </div>   
            <div class="col-md-4">
            	{{HTML::image(Captcha::img(),'Captcha image')}}
            </div>   
        </div><!-- End .col-md-12 -->
    </div><!-- End .form-group -->  
    <div class="form-group">
        <div class="col-md-12">
        	<div class="col-md-4"></div>
            <div class="col-md-5">
                {{Form::submit("Đăng ký",array('class'=>'btn btn-primary'))}}
            </div>
        </div>
    </div><!-- End .form-group -->
{{Form::close()}}
@stop
@section("code_script")
{{HTML::script('public/auth/bootstrap-datepicker/js/bootstrap-datepicker.js')}}
<script type="text/javascript">
    $(document).ready(function(){
        $("#NgaySinh").datepicker({format:'yyyy-mm-dd'});
    });
</script>
@stop